package com.kjlink.internal.workreport.base.enums;

/**
 * 描述:
 * 项目类型：新需求、生产运维
 *
 * @author Vic.xu
 * @since 2025-01-09 9:53
 */
public enum ProjectType implements SelectEnumInterface {
    new_requirement("新需求"),
    production_operation("生产运维");

    private String name;

    ProjectType(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getValue() {
        return name();
    }

    @Override
    public String getText() {
        return name;
    }

    /**
     * 根据name获取枚举
     */
    public static ProjectType getByName(String name) {
        for (ProjectType type : values()) {
            if (type.name().equals(name)) {
                return type;
            }
        }
        return null;
    }
}
